package tools

import "crypto/sha256"

/**
*@author:张子寒
*@QQ:1594426628
*@phone:15279093203
*@DateTime: 2022/4/12 9:20
**/
func SetHash(message []byte)[]byte{
	hash:=sha256.New()
	hash.Write(message)
	return hash.Sum(nil)
}